package com.oauth.linkedin.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.oauth.components.client.rpc.exception.SessionExpiredException;
import com.oauth.linkedin.client.beans.LinkedinModel;
import com.oauth.linkedin.client.beans.LinkedinUser;
import com.oauth.linkedin.client.exception.LinkedinOAuthException;

@RemoteServiceRelativePath("../linkedin/home.ajax")
public interface LinkedinRemoteService extends RemoteService {

	public LinkedinModel getLinkedInData() throws SessionExpiredException, LinkedinOAuthException;

	public List<LinkedinUser> getConnections() throws SessionExpiredException,
			LinkedinOAuthException;

	public List<LinkedinUser> getUpdates() throws SessionExpiredException, LinkedinOAuthException;

	public boolean updateStatus(String pText) throws SessionExpiredException,
			LinkedinOAuthException;
}
